﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 商场收银系统v2._1策略模式
{
    class CashContext
    {
        private  CashSuper _cs = null;

        public CashContext(CashSuper cs)
        { 
            _cs = cs;
        }

        public void Setting(CashSuper cs)
        {
            _cs = cs;
        }

        public double Payment(double money)
        {
            return _cs.Payment(money);
        }
    }
}
